博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
BOOT客户管理系统IDEA开发(一)
阅读量:3939 次
发布时间:2019-05-23

本文共 8430 字,大约阅读时间需要 28 分钟。

一、开发环境

IntelliJ IDEA 2019.3.1 + MySQL 5.7.25

二、系统文件组织结构

12

注:out和target是自动生成不需要手动创建

三、准备所需JAR包

在这里插入图片描述

在这里插入图片描述
注:mysql-connector-java包不建议用最新的,连接低版本数据库可能会报错
话不多说,小编找了好久的包放云盘了
https://pan.baidu.com/s/1aiy3K80bxA61rB7rm3x3Mg

四、开始配置配置文件

applicationContext.xml

 

db.properties

jdbc.driver=com.mysql.jdbc.Driverjdbc.url=jdbc:mysql://localhost:3306/boot_crmjdbc.username=rootjdbc.password=你的数据库密码jdbc.maxTotal=30jdbc.maxIdle=10jdbc.initialSize=5

log4j.properties

# Global logging configurationlog4j.rootLogger=ERROR, stdout# MyBatis logging configuration...log4j.logger.com.itheima.core=DEBUG# Console output...log4j.appender.stdout=org.apache.log4j.ConsoleAppenderlog4j.appender.stdout.layout=org.apache.log4j.PatternLayoutlog4j.appender.stdout.layout.ConversionPattern=%5p [%t] - %m%n
 

mybatis-config.xml

resource.properties

customer.from.type=002customer.industry.type=001customer.level.type=006
 

springmvc-config.xml

 

web.xml

contextConfigLocation
classpath:applicationContext.xml
org.springframework.web.context.ContextLoaderListener
encoding
org.springframework.web.filter.CharacterEncodingFilter
encoding
UTF-8
encoding
*.action
crm
org.springframework.web.servlet.DispatcherServlet
contextConfigLocation
classpath:springmvc-config.xml
1
crm
*.action
index.jsp
 

五、开始配置JSP

index.jsp

<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
 

login.jsp

<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>    登录页面    
 

customer.jsp

<%@ page language="java" contentType="text/html; charset=UTF-8"         pageEncoding="UTF-8"%><%@ page trimDirectiveWhitespaces="true"%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%><%--<%@ taglib prefix="itheima" uri="http://itheima.com/common/"%>--%><%    String path = request.getContextPath();    String basePath = request.getScheme() + "://" + request.getServerName()            + ":" + request.getServerPort() + path + "/";%>    
客户管理-BootCRM

客户管理

新建
客户信息列表
编号 客户名称 客户来源 客户所属行业 客户级别 固定电话 手机 操作
${ row.cust_id} ${ row.cust_name} ${ row.cust_source} ${ row.cust_industry} ${ row.cust_level} ${ row.cust_phone} ${ row.cust_mobile} 修改 删除

转载地址:http://hwywi.baihongyu.com/

你可能感兴趣的文章
C++内存分配 - malloc vs new 以及 delete vs free
查看>>
C++类与对象(1) - 基本概念
查看>>
C++类与对象(2) - class可以拥有自身类型的对象
查看>>
C++类与对象(3) - 空class&struct的大小
查看>>
C++静态成员(1) - 静态成员函数的特性
查看>>
C++静态成员(2) - 静态数据成员
查看>>
C++ this指针(1) - this介绍
查看>>
C++ this指针(2) - this指针的类型
查看>>
C++ this指针(3) - 删除this指针
查看>>
C++构造与析构(1) - 构造函数
查看>>
C++构造与析构(2) - 拷贝构造函数
查看>>
C++构造与析构(3) - 析构函数
查看>>
C++构造与析构(4) - 默认构造函数
查看>>
C++构造与析构(5) - 何时必须自定义拷贝构造函数
查看>>
C++构造与析构(7) - 数据成员的初始化
查看>>
C++构造与析构(8) - 什么时候必须使用初始化列表
查看>>
C++构造与析构(9) - 默认构造函数
查看>>
C++构造与析构(10) - private析构函数
查看>>
C++构造与析构(11) - 析构函数的行为
查看>>
C++构造与析构(12) - copy elision编译器优化
查看>>